import { CODE_KEY } from '@/config/constants'

export const LoginBean = {
  loginName: '',
  password: '',
  code: '',
  codeKey: localStorage.getItem(CODE_KEY) || ''
}

export const Rules = ({
  loginName: [{ required: true, message: '请输入账号', trigger: 'change' }],
  password: [{ required: true, message: '请输入密码', trigger: 'change' }],
  code: [{ required: true, message: '请输入验证码', trigger: 'change' }]
})
